package com.trainingcloud.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 任务管理表
 * </p>
 *
 * @author 纸鹤
 * @since 2022-10-11
 */
@ApiModel(value = "Task对象", description = "任务管理表")
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("任务id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("任务名称")
    private String name;

    @ApiModelProperty("发布时间")
    private Date startTime;

    @ApiModelProperty("截止时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty("关联教师id")
    private Integer relationTeacherId;

    @ApiModelProperty("关联班级id")
    private Integer relationClassId;

    @ApiModelProperty("任务要求内容")
    private String content;

    @ApiModelProperty("任务状态 0-未发布 1-已发布 2-已结束 ")
    private Integer taskStatus;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @ApiModelProperty("逻辑删除：0=未删除，1=删除")
    private Integer isDeleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getRelationTeacherId() {
        return relationTeacherId;
    }

    public void setRelationTeacherId(Integer relationTeacherId) {
        this.relationTeacherId = relationTeacherId;
    }

    public Integer getRelationClassId() {
        return relationClassId;
    }

    public void setRelationClassId(Integer relationClassId) {
        this.relationClassId = relationClassId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "Task{" +
                "id=" + id +
                ", name=" + name +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", relationTeacherId=" + relationTeacherId +
                ", relationClassId=" + relationClassId +
                ", content=" + content +
                ", taskStatus=" + taskStatus +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", isDeleted=" + isDeleted +
                "}";
    }
}